home *** CD-ROM | disk | FTP | other *** search
/ Adobe Digital Video Collection / Digital Video Collection CD.iso / After Effects 5.5 / MMScriptEng.Cab / F115578_frmeffect.mm < prev    next >
Encoding:
Text File  |  2001-12-07  |  1.1 KB  |  21 lines

  1. // Apply from Effect Point - Version 1.1
  2.  
  3. // This Program Sets the value of the first set of popups to the value of the second set of
  4. //  popups multiplied by "scale_factor".
  5. // It assumes that the first value is a position value and the second value is an effect
  6. // point control. 
  7.  
  8. //      LAYER                                           PROPERTY                  CHANNEL
  9. //      ------                                          ----------                  --------
  10. // 1: layer to copy effect position to       Position                      channel of position property
  11. // 2: layer which has an effect                effect point control    channel of effect point control
  12.  
  13. // Since effect point controls are expressed in layer coordinates,
  14. // we must wrap the evaluation of the effect point with "layer_to_comp" so
  15. // that the layer coordinates are transformed to comp coordinates.
  16.  
  17. scale_factor = 1.0;
  18. value(pop_layer(1), pop_property(1)) [pop_channel(1)] =
  19.   layer_to_comp(pop_layer(2), 
  20.                                                   value(pop_layer(2), pop_property(2)) [pop_channel(2)]) * scale_factor;
  21.